// composables/eventBus.js
import mitt from 'mitt'

const emitter = mitt()

export function createEventBus() {
  return {
    emit: emitter.emit,
    on: emitter.on
  }
}